import java.util.Scanner;

public class ShuZhiChaiFen {
    //键盘录入一个三位数，将其拆分为个位 十位 百位
    public static void main(String[] agrs){
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个三位数");
        int num = sc.nextInt();
        int ge = num%10;
        int shi = num/10%10;
        int bai = num/100;
        System.out.println("整数"+num+"个位为:"+ge);
        System.out.println("整数"+num+"十位为:"+shi);
        System.out.println("整数"+num+"百位为:"+bai);

    }
}
